Optimal. Leaf size=326 \[ \frac{2 b \sqrt{a+b} \cot (e+f x) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (\sec (e+f x)+1)}{a-b}} \text{EllipticF}\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right ),\frac{a+b}{a-b}\right )}{d f}-\frac{2 (b c-a d)^2 \tan (e+f x) \sqrt{\frac{a+b \sec (e+f x)}{a+b}} \Pi \left (\frac{2 d}{c+d};\sin ^{-1}\left (\frac{\sqrt{1-\sec (e+f x)}}{\sqrt{2}}\right )|\frac{2 b}{a+b}\right )}{c d f (c+d) \sqrt{-\tan ^2(e+f x)} \sqrt{a+b \sec (e+f x)}}-\frac{2 a \sqrt{a+b} \cot (e+f x) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (\sec (e+f x)+1)}{a-b}} \Pi \left (\frac{a+b}{a};\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right )|\frac{a+b}{a-b}\right )}{c f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.361492, antiderivative size = 326, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.185, Rules used = {3928, 3921, 3784, 3832, 3973} \[ -\frac{2 (b c-a d)^2 \tan (e+f x) \sqrt{\frac{a+b \sec (e+f x)}{a+b}} \Pi \left (\frac{2 d}{c+d};\sin ^{-1}\left (\frac{\sqrt{1-\sec (e+f x)}}{\sqrt{2}}\right )|\frac{2 b}{a+b}\right )}{c d f (c+d) \sqrt{-\tan ^2(e+f x)} \sqrt{a+b \sec (e+f x)}}-\frac{2 a \sqrt{a+b} \cot (e+f x) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (\sec (e+f x)+1)}{a-b}} \Pi \left (\frac{a+b}{a};\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right )|\frac{a+b}{a-b}\right )}{c f}+\frac{2 b \sqrt{a+b} \cot (e+f x) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (\sec (e+f x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right )|\frac{a+b}{a-b}\right )}{d f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3928
Rule 3921
Rule 3784
Rule 3832
Rule 3973
Rubi steps
\begin{align*} \int \frac{(a+b \sec (e+f x))^{3/2}}{c+d \sec (e+f x)} \, dx &=\frac{\int \frac{a^2 d+b^2 c \sec (e+f x)}{\sqrt{a+b \sec (e+f x)}} \, dx}{c d}-\frac{(b c-a d)^2 \int \frac{\sec (e+f x)}{\sqrt{a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx}{c d}\\ &=-\frac{2 (b c-a d)^2 \Pi \left (\frac{2 d}{c+d};\sin ^{-1}\left (\frac{\sqrt{1-\sec (e+f x)}}{\sqrt{2}}\right )|\frac{2 b}{a+b}\right ) \sqrt{\frac{a+b \sec (e+f x)}{a+b}} \tan (e+f x)}{c d (c+d) f \sqrt{a+b \sec (e+f x)} \sqrt{-\tan ^2(e+f x)}}+\frac{a^2 \int \frac{1}{\sqrt{a+b \sec (e+f x)}} \, dx}{c}+\frac{b^2 \int \frac{\sec (e+f x)}{\sqrt{a+b \sec (e+f x)}} \, dx}{d}\\ &=\frac{2 b \sqrt{a+b} \cot (e+f x) F\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right )|\frac{a+b}{a-b}\right ) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (1+\sec (e+f x))}{a-b}}}{d f}-\frac{2 a \sqrt{a+b} \cot (e+f x) \Pi \left (\frac{a+b}{a};\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right )|\frac{a+b}{a-b}\right ) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (1+\sec (e+f x))}{a-b}}}{c f}-\frac{2 (b c-a d)^2 \Pi \left (\frac{2 d}{c+d};\sin ^{-1}\left (\frac{\sqrt{1-\sec (e+f x)}}{\sqrt{2}}\right )|\frac{2 b}{a+b}\right ) \sqrt{\frac{a+b \sec (e+f x)}{a+b}} \tan (e+f x)}{c d (c+d) f \sqrt{a+b \sec (e+f x)} \sqrt{-\tan ^2(e+f x)}}\\ \end{align*}
Mathematica [A] time = 5.62718, size = 233, normalized size = 0.71 \[ -\frac{4 \cos ^2\left (\frac{1}{2} (e+f x)\right ) \sqrt{\frac{\cos (e+f x)}{\cos (e+f x)+1}} \sqrt{\frac{a \cos (e+f x)+b}{(a+b) (\cos (e+f x)+1)}} \sqrt{a+b \sec (e+f x)} \left (c (a-b)^2 (c+d) \text{EllipticF}\left (\sin ^{-1}\left (\tan \left (\frac{1}{2} (e+f x)\right )\right ),\frac{a-b}{a+b}\right )+2 a^2 \left (c^2-d^2\right ) \Pi \left (-1;-\sin ^{-1}\left (\tan \left (\frac{1}{2} (e+f x)\right )\right )|\frac{a-b}{a+b}\right )+2 (b c-a d)^2 \Pi \left (\frac{c-d}{c+d};-\sin ^{-1}\left (\tan \left (\frac{1}{2} (e+f x)\right )\right )|\frac{a-b}{a+b}\right )\right )}{c f (c-d) (c+d) (a \cos (e+f x)+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.305, size = 581, normalized size = 1.8 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \sec \left (f x + e\right ) + a\right )}^{\frac{3}{2}}}{d \sec \left (f x + e\right ) + c}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \sec{\left (e + f x \right )}\right )^{\frac{3}{2}}}{c + d \sec{\left (e + f x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \sec \left (f x + e\right ) + a\right )}^{\frac{3}{2}}}{d \sec \left (f x + e\right ) + c}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]